# -*- coding:utf-8 -*-
__author__ = 'Yangyang'
__date__ = '2017/9/18 18:40'


from django.conf.urls import url
from .views import CourseListView, CourseDetailView, CourseInfoView, CommentsView, AddComment
urlpatterns = [
     url(r'^list/$', CourseListView.as_view(), name='course_list'),
     url(r'^detail/(?P<course_id>\d+)/$', CourseDetailView.as_view(), name='course_detail'),
     # 课程信息
     url(r'^info/(?P<course_id>\d+)/$', CourseInfoView.as_view(), name='course_info'),
     # 评论页面
     url(r'^comment/(?P<course_id>\d+)/$', CommentsView.as_view(), name='course_comment'),

     # 添加评论
     url(r'^add_comment/$', AddComment.as_view(), name='add_comment'),

]